--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 4688518e403a3270a199f3150954559e05ef020d
Parents : d1d529c
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-04-14T17:21:44-05:00
refactor(tests): update test commands
Changes
Diff
diff --git a/Makefile b/Makefile
index 9c99b84e..28833ff6 100644
--- a/Makefile
+++ b/Makefile
@@ -40,10 +40,10 @@ lint:
test:
pnpm run test
- poetry run python -m pytest tests/backend --ignore=tests/backend/test_performance_hotpaths.py --cov=meshchatx/src/backend
+ poetry run python -m pytest tests/backend -n auto --ignore=tests/backend/test_performance_hotpaths.py --ignore=tests/backend/test_memory_profiling.py --ignore=tests/backend/test_performance_bottlenecks.py --cov=meshchatx/src/backend
test-be-perf:
- poetry run python -m pytest tests/backend/test_performance_hotpaths.py
+ poetry run python -m pytest tests/backend/test_performance_hotpaths.py tests/backend/test_performance_bottlenecks.py
clean:
rm -rf node_modules build dist python-dist meshchatx/public build-dir out
diff --git a/Taskfile.yml b/Taskfile.yml
index c3ea2714..142957a3 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -161,24 +161,29 @@ tasks:
- "{{.NPM}} run test:e2e"
test:be:
- desc: Run Python tests (pytest; excludes performance and memory profiling — use test:be:perf / profile:mem locally)
+ desc: Run Python tests (pytest; excludes timing-sensitive perf and memory profiling — use test:be:perf / profile:mem locally)
cmds:
- - poetry run pytest tests/backend --ignore=tests/backend/test_performance_hotpaths.py --ignore=tests/backend/test_memory_profiling.py --cov=meshchatx/src/backend
+ - poetry run pytest tests/backend -n auto --ignore=tests/backend/test_performance_hotpaths.py --ignore=tests/backend/test_memory_profiling.py --ignore=tests/backend/test_performance_bottlenecks.py --cov=meshchatx/src/backend
test:be:cov:
- desc: Run Python tests with detailed coverage (excludes performance hot-path and memory profiling tests)
+ desc: Run Python tests with detailed coverage (excludes performance hot-path, bottleneck timing, and memory profiling tests)
cmds:
- - poetry run pytest tests/backend --ignore=tests/backend/test_performance_hotpaths.py --ignore=tests/backend/test_memory_profiling.py --cov=meshchatx/src/backend --cov-report=term-missing
+ - poetry run pytest tests/backend -n auto --ignore=tests/backend/test_performance_hotpaths.py --ignore=tests/backend/test_memory_profiling.py --ignore=tests/backend/test_performance_bottlenecks.py --cov=meshchatx/src/backend --cov-report=term-missing
test:be:perf:
desc: Backend performance regression tests (not run in CI; run locally when needed)
cmds:
- - poetry run pytest tests/backend/test_performance_hotpaths.py
+ - poetry run pytest tests/backend/test_performance_hotpaths.py tests/backend/test_performance_bottlenecks.py
test:be:full:
desc: All backend tests including performance hot paths (local)
cmds:
- - poetry run pytest tests/backend --cov=meshchatx/src/backend
+ - poetry run pytest tests/backend -n auto --cov=meshchatx/src/backend
+
+ test:mutation:
+ desc: Mutation testing (mutmut; slow; optional; default targets meshchat_utils)
+ cmds:
+ - poetry run mutmut run "meshchatx.src.backend.meshchat_utils*"
test:fe:
desc: Run frontend tests (vitest)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────